//
// Created by XiaoXiu on 2025/5/20.
//

#ifndef GAME_H
#define GAME_H

#include "snake.h"
#include "SDL3/SDL_render.h"
extern SDL_Window *window;
extern SDL_Renderer *renderer;

int pre_init();

void init();

void cleanup();

void handleInput();

void render(float alpha);

int serverTick();

void framebuffer_clear(const int frame);

Packet *framebuffer_get(const int frame);

void updateLogic(Packet *pkt);
#endif //GAME_H
